Assume the bean name "StrL1" and at least two strings in the string list.
MAIN.C
word size;
char* str; /* Pointer to a stored string */
void main(void)
{
/* Get number of strings in the list */
size = StrL1_GetNumLines();
/* Read the first string from the list */
str = StrL1_GetLine(0);
/* Read the second string from the list */
str = StrL1_GetLine(1);
}
For more about typical usage of the bean code please refer to the page Bean Code Typical Usage.